"""
数据传输对象（Data Transfer Object）模块：系统配置信息
"""

from app.common.constants import Switch


class SysConfigDto(object):
    """
    系统配置信息Dto类
    """

    def __init__(self, name, nid, value, type_, _id=0, status=Switch.YES.value[0], remark=""):
        self.id = _id
        self.name = name
        self.nid = nid
        self.value = value
        self.type = type_
        self.status = status
        self.remark = remark

    def __str__(self):
        return "({0.id!s}, {0.name!s}, {0.nid!s}, {0.value!s}, {0.type!s}, {0.status!s},{0.remark!s})".format(
            self)
